package com.tencent.qf.team.service;

import com.tencent.qf.mybatis.pojo.PageRequest;
import com.tencent.qf.mybatis.pojo.PageResult;
import com.tencent.qf.team.dal.DmAppSalesPersonalPerformance;
import com.tencent.qf.team.dal.DmAppSalesTutorPerformance;
import com.tencent.qf.team.dto.request.PersonalPerformanceRequest;
import com.tencent.qf.team.dto.request.TutorPerformanceByGroupIdRequest;
import com.tencent.qf.team.dto.request.TutorPerformanceRequest;

import java.util.List;

public interface SalesPerformanceService {

    /**
     * 导师业绩
     *
     * @param request
     * @return
     */
    DmAppSalesTutorPerformance tutorPerformance(TutorPerformanceRequest request);

    /**
     * 个人业绩
     *
     * @param request
     * @return
     */
    List<DmAppSalesPersonalPerformance> personalPerformance(List<PersonalPerformanceRequest> request);

    /**
     * 查组织下所有导师业绩
     *
     * @param request
     * @return
     */
    List<DmAppSalesTutorPerformance> tutorPerformanceByGroupId(TutorPerformanceByGroupIdRequest request);

    /**
     * 组织业绩-查组织下所有导师业绩-分页
     * @param request
     * @return
     */
    PageResult<DmAppSalesTutorPerformance> tutorPerformanceByGroupIdPaginate(PageRequest<TutorPerformanceByGroupIdRequest> request);
}
